package com.bawei.patient.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bawei.patient.entity.DoctorPatientMidEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bawei.patient.vo.DoctorPatientMidVo;
import com.bawei.patient.vo.DoctorPatientSpecificVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 医生患者中间表
 * 
 * @author patient
 * @email sunlightcs@gmail.com
 * @date 2021-12-09 19:52:26
 */
@Mapper
public interface DoctorPatientMidDao extends BaseMapper<DoctorPatientMidEntity> {

    IPage<DoctorPatientMidEntity> doctorPatientList(Page<DoctorPatientMidEntity> page, @Param("patientId") Integer patientId);

    DoctorPatientSpecificVo findByPatientId(@Param("id")Integer id);
}
